<?php
// +---------------------------------------------------------------------+
// | OneBase    | [ WE CAN DO IT JUST THINK ]                            |
// +---------------------------------------------------------------------+
// | Licensed   | http://www.apache.org/licenses/LICENSE-2.0 )           |
// +---------------------------------------------------------------------+
// | Author     | Bigotry <3162875@qq.com>                               |
// +---------------------------------------------------------------------+
// | Repository | https://gitee.com/Bigotry/OneBase                      |
// +---------------------------------------------------------------------+

namespace app\common\validate;

/**
 * Curr验证器
 */
class Curr extends ValidateBase
{
    
    // 验证规则
    protected $rule =   [
        'address'          => 'require|unique:wallet_recharge_type',
        'cover_id'          => 'gt:0',
    ];

    // 验证提示
    protected $message  =   [
        'address.require'         => '钱包地址不能为空',
        'address.unique'         => '钱包地址已存在',
        'cover_id.gt'         => '收款二维码不能为空',
    ];

    // 应用场景
    protected $scene = [
        'edit'  =>  ['currency_id','address','cover_id'],
    ];

}
